package com.dmcb.trade.business.entities;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by long on 2016/2/25.
 */
public class Article implements Serializable {

    public static final int STATUS_INIT = 0;
    public static final int STATUS_WAITING = 1;
    public static final int STATUS_PASS = 2; // 审核通过
    public static final int STATUS_REFUSE = 3; // 审核拒绝

    public static final int STATUS_OFF_SHELF = 0; // 下架
    public static final int STATUS_ON_SHELF = 1; // 上架

    public static final int SOURCE_WECHAT = 1; //微信


    private int id;
    private int authorId;
    private String authorName;
    private String title;
    private String coverPath;
    private String body;
    private int bodyId;
    private String genre;
    private int score;
    private int approveStatus;
    private int shelfStatus;
    private String link;
    private int copyNum;
    private int readNum;
    private Date postTime;
    private Date createTime;
    private Date lastModTime;
    private int source;
    private int sourceId;
    private int firstPublish;
    private int price;
    private int materialPrice;
    private int materialAllow;
    private String platform;

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public int getMaterialAllow() {
        return materialAllow;
    }

    public void setMaterialAllow(int materialAllow) {
        this.materialAllow = materialAllow;
    }

    public int getMaterialPrice() {
        return materialPrice;
    }

    public void setMaterialPrice(int materialPrice) {
        this.materialPrice = materialPrice;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getFirstPublish() {
        return firstPublish;
    }

    public void setFirstPublish(int firstPublish) {
        this.firstPublish = firstPublish;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public Article() {
    }

    public int getShelfStatus() {
        return shelfStatus;
    }

    public void setShelfStatus(int shelfStatus) {
        this.shelfStatus = shelfStatus;
    }

    public int getReadNum() {
        return readNum;
    }

    public void setReadNum(int readNum) {
        this.readNum = readNum;
    }

    public int getBodyId() {
        return bodyId;
    }

    public void setBodyId(int bodyId) {
        this.bodyId = bodyId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModTime() {
        return lastModTime;
    }

    public void setLastModTime(Date lastModTime) {
        this.lastModTime = lastModTime;
    }

    public int getAuthorId() {
        return authorId;
    }

    public void setAuthorId(int authorId) {
        this.authorId = authorId;
    }

    public Date getPostTime() {
        return postTime;
    }

    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    public int getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(int approveStatus) {
        this.approveStatus = approveStatus;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getCoverPath() {
        return coverPath;
    }

    public void setCoverPath(String coverPath) {
        this.coverPath = coverPath;
    }

    public int getCopyNum() {
        return copyNum;
    }

    public void setCopyNum(int copyNum) {
        this.copyNum = copyNum;
    }

}
